package cn.tedu.oop;

public class Test3_Car {
    public static void main(String[] args) {
        Car c = new Car();

        c.fly();
        c.run();

        c.color = "black";
        c.price = 998;
        c.bundle = "CGB";

        System.out.println(c.color);
        System.out.println(c.price);
        System.out.println(c.bundle);

        Car c2 = new Car();
        c2.run();
        c2.fly();
        c2.bundle = "Audi";
        c2.price = 199;
        c2.color = "White";
        System.out.println(c2.bundle);
        System.out.println(c2.price);
        System.out.println(c2.color);

        Car c3 = c2;
        System.out.println(c3.bundle);
        System.out.println(c3.price);
        System.out.println(c3.color);
    }
}
class Car{
    String color;
    double price;
    String bundle;

    public void run(){
        System.out.println("run()...");
    }
    public void fly(){
        System.out.println("fly()...");
    }
}